package com.fuershiye.woman.monitor.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author yongyongdong
 *
 *	每个报表需要哪些部门填报的映射关系
 *	部门上报状态的显示
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "forms_depart")
public class FormsDepart  extends LongIdEntity{
	
	/** 报表id, 表forms 的id */
	private Long formsid;
	
	/**地域ID,便于统计同一地域的所有部门*/
	private Long areaid;
	
	/** 部门id，表 department 的id */
	private Long departid;
	/** 部门名称 */
	private String dname;
	/** 部门id，表 department 的id */
	private Integer year;
	/**申请撤销上报的理由*/
	private String cancel;
	private Date mtime;
	/** 编辑人员\上报人员\审核人员（实际上报人员） */
	private String editor;
	/** 填报人,手动输入的填报人 */
	private String maker;
	private Date ctime;

	/** 各部门,各年份,各报表的状态
	 *  0:删除(默认),1:未上报(一个指标都没有上报);2:上报中(部分上报);3:审核(自己审核);4:审核(上级部门);5:审核通过(不允许修改);6:其他;
	 */
	private Integer status;
	
	public FormsDepart(
			Long formsid,
			Long areaid,
			Long departid,
			String dname,
			Integer year,
			String cancel,
			String editor,
			String maker){
        this.formsid = formsid;
        this.areaid = areaid;
        this.departid = departid;
        this.dname = dname;
        this.year = year;
        this.cancel = cancel;
        this.mtime = new Date();
        this.editor = editor;
        this.maker = maker;
        this.ctime = new Date();
        this.status = 1;
    }
	
	public FormsDepart() {
		
	}

	public Long getAreaid() {
		return areaid;
	}

	public void setAreaid(Long areaid) {
		this.areaid = areaid;
	}

	public String getDname() {
		return dname;
	}

	public void setDname(String dname) {
		this.dname = dname;
	}

	public Long getFormsid() {
		return formsid;
	}

	public void setFormsid(Long formsid) {
		this.formsid = formsid;
	}

	public Long getDepartid() {
		return departid;
	}

	public void setDepartid(Long departid) {
		this.departid = departid;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getEditor() {
		return editor;
	}

	public void setEditor(String editor) {
		this.editor = editor;
	}

	public String getMaker() {
		return maker;
	}

	public void setMaker(String maker) {
		this.maker = maker;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCancel() {
		return cancel;
	}

	public void setCancel(String cancel) {
		this.cancel = cancel;
	}
	
}

